package io.renren.modules.sharePage.service.impl;

import io.renren.modules.sharePage.dao.sharePageDao;
import io.renren.modules.forYoung.entity.ForYounyEntity;
import io.renren.modules.sharePage.service.sharePageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class sharePageServiceImpl implements sharePageService {
    @Autowired
    sharePageDao sharepagedao;
    @Override
    public ForYounyEntity getForyoungById(Long forYoungId) {
        ForYounyEntity forYounyEntity=sharepagedao.getForyoungById(Math.toIntExact(forYoungId));
        return forYounyEntity;
    }
}
